package com.moi.singleton;

/**
 *
 * 饱汉式
 */
public  class SingletonB {
    private static final SingletonB singletonB=new SingletonB();

    private SingletonB(){}


    public  final static SingletonB getSingletonB(){
        return singletonB;
    }
}
